<?php
/**
 * Created by PhpStorm.
 * User: idcu
 * Date: 2016/3/8
 * Time: 18:15
 */
namespace Service\Model;
use IDCU\Model\RelationModel;

class FamilyModel extends RelationModel
{
    protected $_link = array(
        'Customer' => array(
            'mapping_type' => self::MANY_TO_MANY,
            'class_name' => 'Customer',
            'mapping_name' => 'customers',
            'foreign_key' => 'customer_id',
            'relation_foreign_key' => 'family_id',
            'relation_table' => 'zh_family_member'
        )
    );
}